<?php

namespace App;


use Encore\Admin\Grid;
use Encore\Admin\Facades\Admin;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Package extends Authenticatable
{
    use Notifiable;
    public $table = "package";

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'money', 'time',
    ];

    
    public static function getSelectOptions()
    {
        $options = self::pluck('package_name', 'id');
        return $options;
    }

    public function package()
    {
        return $this->belongsTo(ChestType::class, 'id');
    }


    /*public function packages()
    {
        return $this->belongsToMany(ChestType::class);
    }*/

}